<form class="layui-form" action="">
         <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-block">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">房屋名称</label>
                <div class="layui-input-block">
                    <input type="text" name="houseName" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
           </div>
    <div class="layui-form-item">
        <label class="layui-form-label">房屋类型</label>
        <div class="layui-input-block">
            <select name="interest" lay-filter="aihao">
                <option value=""></option>
                <option value="0">一室一厅一卫</option>
                <option value="1" selected="">两室一厅一卫</option>
                <option value="2">三室一厅一卫</option>
                <option value="3">三室一厅二卫</option>
                <option value="4">三室二厅二卫</option>
                <option value=  "5">四室二厅二卫</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
                <label class="layui-form-label">房屋所在区</label>
                <div class="layui-input-block">
                    <input type="text" name="houseRegion" lay-verify="required" autocomplete="off" placeholder="请输入房屋所在区" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">详情地址</label>
                <div class="layui-input-block">
                    <input type="text" name="houseDetailedRegion" lay-verify="required" autocomplete="off" placeholder="请输入详情地址" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">房屋楼层</label>
                <div class="layui-input-block">
                    <input type="text" name="houseCoordinate" lay-verify="required" autocomplete="off" placeholder="请输入楼层" class="layui-input">
                </div>
           </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">价格范围</label>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="price_min" placeholder="￥" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="price_max" placeholder="￥" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
         <div class="layui-form-item">
                <label class="layui-form-label">租房要求</label>
                <div class="layui-input-block">
                    <input type="text" name="houseSpecifications" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">业主信息</label>
                <div class="layui-input-block">
                    <input type="text" name="ownerId" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>

           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">合同信息</label>
                <div class="layui-input-block">
                    <input type="text" name="contractId" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">房屋图片</label>
                <div class="layui-input-block">
                    <input type="text" name="houseImg" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">操作人</label>
                <div class="layui-input-block">
                    <input type="text" name="operName" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">操作人id</label>
                <div class="layui-input-block">
                    <input type="text" name="operName" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input">
                </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">录入时间</label>
             <div class="layui-inline">
                 <div class="layui-input-inline">
                     <input type="text" class="layui-input" id="test5" placeholder="yyyy-MM-dd HH:mm:ss">
                 </div>
             </div>
           </div>
         <div class="layui-form-item">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-block">
                </div>
           </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script>
    layui.use(["jquery","form"],function () {
        var $=layui.jquery
        ,form=layui.form;
        form.render();
        form.on('submit(demo1)', function(data){//点击提交按钮
           $.ajax({
               url:"/sysHouseInfo/addSysHouseInfo",
               data:data.field,
               dataType:"json",
               type:"post",
               success:function (msg) {
                   if (msg.code==0){
                        tableIns.reload({
                            page:{
                                curr:1
                            }
                        });
                        layer.msg(msg.msg);//提示后台传过来的信息
                        layer.close(openIndex);//关闭当前弹出的窗体
                   }else{
                       layer.msg(msg.msg);//提示后台传过来的信息
                   }
               }
           });
            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });
    });
</script>